package flexjson.factories;

import flexjson.ObjectBinder;
import flexjson.ObjectFactory;

public class CharacterObjectFactory implements ObjectFactory {

    public Object instantiate(ObjectBinder context, Object value, Class targetType, Class targetClass) {
        return new Character(value.toString().charAt(0));
    }
}
